package com.techstar.ats.codec.live.encoder;

import io.netty.buffer.ByteBuf;
import com.techstar.ats.codec.MessageEncoder;
import com.techstar.ats.dxp.live.req.F03LoadDeviceStatus;

public enum F03LoadDeviceStatusEncoder implements MessageEncoder<F03LoadDeviceStatus> {
	INSTANCE;

	public int bytes(F03LoadDeviceStatus value) {
		return 2;
	}

	public void encodeBody(ByteBuf buf, F03LoadDeviceStatus value) {
		buf.writeShort(value.line);
	}
}
